<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("labelIODetail_title")}' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<script>
		function newDrawLay(){
			window.open("labelIOAction!drawHisTrack.action","","fullscreen=no,width="+window.screen.width+",height="+window.screen.height+", toolbar =no, menubar=no, scrollbars=no, resizable=yes, location=no, status=yes");
		}
		function exportExcel(){
			document.forms[0].action="labelIOAction!excelHisExport.action";
			document.forms[0].submit();
			document.forms[0].action="labelIOAction!findHisDetail.action";
		}
		</script>
	</head>
	<body>
		<h2>
			<s:property value='%{getText("labelIODetail_h2")}' />
		</h2>
		<div class="main">
			<s:form action="labelIOAction!findHisDetail.action" method="post"
				theme="simple">
				<s:hidden name="entity.labelID"></s:hidden>
				<s:hidden name="entity.empName"></s:hidden>
				<s:hidden name="entity.depID"></s:hidden>
				<s:hidden name="entity.dutyID"></s:hidden>
				<s:hidden name="entity.workTypeID"></s:hidden>
				<s:hidden name="entity.inTime"></s:hidden>
				<s:hidden name="entity.outTime"></s:hidden>
				<s:hidden name="entity.empID"></s:hidden>
				<h4>
					编号：
					<label>
						<s:property value="#session.labelIOBeanHisDetail.labelID" />
					</label>
					<s:property value='%{getText("emp_new_xm")}' />
					<label>
						<s:property value="#session.labelIOBeanHisDetail.empName" />
					</label>
					班组：
					<label>
						<s:property value="#session.labelIOBeanHisDetail.depID" />
					</label><!--
					<s:property value='%{getText("emp_new_zw")}' />
					<label>
						<s:property value="#session.labelIOBeanHisDetail.dutyID" />
					</label>
					--><span><s:property value='%{getText("emp_edit_sjfw")}' /><label>
							<s:property value="#session.labelIOBeanHisDetail.inTime" />
							~
							<s:property value="#session.labelIOBeanHisDetail.outTime" />
						</label> </span>
				</h4>
				<p class="pEdit">
					<input type="button" id="excel" name="excel" class="bExcel"
						value="导出Excel" onclick="exportExcel()" />
					<input name="drawMap" type="button" class="bDraw" value="绘制轨迹"
						onclick="newDrawLay();" />
					<input name="pev" type="button" class="bPev" value="返回"
						onclick="history.back();" />
				</p>
				<table border="0" cellpadding="1" cellspacing="1" class="tableList">
					<thead>
						<tr>
							<th class="number">
								<s:property value='%{getText("emp_th1")}' />
							</th>
							<th>
								<s:property value='%{getText("emp_th3")}' />
							</th>
							<th>
								编号
							</th>
							<th>
								读卡器编号
							</th>
							<th>
								读卡器名称
							</th>
							<th>
								<s:property value='%{getText("labelIODetail_inTime")}' />
							</th>
							<th>
								<s:property value='%{getText("labelIODetail_outTime")}' />
							</th>
						</tr>
					</thead>

					<tbody>
						<s:iterator id="pageBean" status="u"
							value="#session.labelIOBeanHisDetail.list">
							<tr>
								<td class="number">
									${entity.index+u.index}
								</td>
								<td>
									${pageBean.employee.empName}
								</td>
								<td>
									${pageBean.labelID}
								</td>
								<td>
									${pageBean.lrmID}
								</td>
								<td>
									${pageBean.rmk}
								</td>
								<td>
									<s:property
										value='#pageBean.inTime.toString("yyyy-MM-dd HH:mm:ss")' />
								</td>
								<td>
									<s:property
										value='#pageBean.outTime.toString("yyyy-MM-dd HH:mm:ss")' />
								</td>
							</tr>
						</s:iterator>
						<tr>
							<td colspan="9" class="turnPage"><jsp:include flush="true"
									page="../commonPage/page.jsp"><jsp:param
										name="entity" value="entity" />
								</jsp:include>
							</td>
						</tr>
					</tbody>
				</table>
			</s:form>
		</div>
	</body>
</html>


